import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Userinfo',
        component: () => import('../view/Userinfo.vue')
    },
    {
        path: '/Login',
        name: 'Login',
        component: () => import('../view/Login.vue')
    },
    {
        path: '/Userlog',
        name: 'Userlog',
        component: () => import('../view/Userlog.vue')
    },
    {
        path: '/Invest',
        name: 'Invest',
        component: () => import('../view/Invest/Invest.vue')
    },
    {
        path: '/ShowInvest',
        name: 'ShowInvest',
        component: () => import('../view/Invest/ShowInvest.vue')
    }
    
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router